home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / tiff / tools / Makefile.vax < prev    next >
Makefile  |  1992-02-18  |  4KB  |  136 lines

  1. #    $Header: /usr/people/sam/tiff/tools/RCS/Makefile.vax,v 1.18 92/02/19 14:38:17 sam Exp $
  2. #
  3. # TIFF Library Tools
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  6. # Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Stanford and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24. NULL=
  25. IPATH=    -I../libtiff
  26. #
  27. # If you don't want the public domain getopt code, then
  28. # simply null this out and you'll get whatever is in your
  29. # libc (or similar).
  30. #
  31. GETOPT=    getopt.o
  32. #
  33. # Library-wide configuration defines:
  34. #    MMAP_SUPPORT    add support for memory mapping read-only files
  35. #    COLORIMETRY_SUPPORT add support for 6.0 colorimetry tags
  36. #    JPEG_SUPPORT    add support for 6.0 JPEG tags & JPEG algorithms
  37. #    YCBCR_SUPPORT    add support for 6.0 YCbCr tags
  38. #    CMYK_SUPPORT    add support for 6.0 CMYK tags
  39. #
  40. # Note that if you change the library-wide configuration, you'll
  41. # need to manual force a full rebuild. 
  42. #
  43. CONF_LIBRARY=\
  44.     -DUSE_VARARGS=0 \
  45.     -DUSE_PROTOTYPES=1 \
  46.     -DCOLORIMETRY_SUPPORT \
  47.     -DYCBCR_SUPPORT \
  48.     ${NULL}
  49. COPTS=    
  50. CFLAGS=    -g ${COPTS} ${IPATH}
  51. #
  52. LIBTIFF=../libtiff/libtiff.a
  53. LIBS=    ${LIBTIFF}
  54. MACHALL=
  55. OBJS=    \
  56.     fax2tiff.o \
  57.     gif2tiff.o \
  58.     pal2rgb.o \
  59.     ppm2tiff.o \
  60.     rgb2ycbcr.o \
  61.     tiff2bw.o \
  62.     tiff2ps.o \
  63.     tiffcmp.o \
  64.     tiffcp.o \
  65.     tiffdither.o \
  66.     tiffdump.o \
  67.     tiffinfo.o \
  68.     tiffmedian.o \
  69.     tiffsplit.o \
  70.     ${GETOPT} \
  71.     ${NULL}
  72. ALL=\
  73.     fax2tiff \
  74.     gif2tiff \
  75.     pal2rgb \
  76.     ppm2tiff \
  77.     rgb2ycbcr \
  78.     tiff2bw \
  79.     tiff2ps \
  80.     tiffcmp \
  81.     tiffcp \
  82.     tiffdither \
  83.     tiffdump \
  84.     tiffinfo \
  85.     tiffmedian \
  86.     tiffsplit \
  87.     ${MACHALL} \
  88.     ${NULL}
  89.  
  90. all:     ${ALL}
  91.  
  92. tiffinfo: tiffinfo.c ${GETOPT} ${LIBTIFF}
  93.     ${CC} -o tiffinfo ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
  94. tiffcmp:tiffcmp.c ${GETOPT} ${LIBTIFF}
  95.     ${CC} -o tiffcmp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
  96. tiffcp:    tiffcp.c ${LIBTIFF}
  97.     ${CC} -o tiffcp ${CFLAGS} tiffcp.c ${LIBS}
  98. tiffdump: tiffdump.c
  99.     ${CC} -o tiffdump ${CFLAGS} tiffdump.c
  100. tiffmedian: tiffmedian.c ${LIBTIFF}
  101.     ${CC} -o tiffmedian ${CFLAGS} tiffmedian.c ${LIBS}
  102. tiffsplit: tiffsplit.c ${LIBTIFF}
  103.     ${CC} -o tiffsplit ${CFLAGS} tiffsplit.c ${LIBS}
  104. tiff2ps: tiff2ps.c ${LIBTIFF}
  105.     ${CC} -o tiff2ps ${CFLAGS} tiff2ps.c ${LIBS} -lm
  106. # junky stuff...
  107. # convert RGB image to B&W
  108. tiff2bw: tiff2bw.c ${GETOPT} ${LIBTIFF}
  109.     ${CC} -o tiff2bw ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
  110. # convert B&W image to bilevel w/ FS dithering
  111. tiffdither: tiffdither.c ${LIBTIFF}
  112.     ${CC} -o tiffdither ${CFLAGS} tiffdither.c ${LIBS}
  113. # Group 3 FAX file converter
  114. fax2tiff: fax2tiff.c ${GETOPT} ${LIBTIFF}
  115.     ${CC} -o fax2tiff ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
  116. # GIF converter
  117. gif2tiff: gif2tiff.c ${LIBTIFF}
  118.     ${CC} -o gif2tiff ${CFLAGS} gif2tiff.c ${LIBS} -lm
  119. # PBM converter
  120. ppm2tiff: ppm2tiff.c ${LIBTIFF}
  121.     ${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.c ${LIBS}
  122. # convert Palette image to RGB
  123. pal2rgb: pal2rgb.c ${LIBTIFF}
  124.     ${CC} -o pal2rgb ${CFLAGS} pal2rgb.c ${LIBS}
  125. # convert RGB image to YCbCr
  126. rgb2ycbcr: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
  127.     ${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS} -lm
  128.  
  129. install: all
  130.  
  131. clean:
  132.     rm -f ${ALL} ${OBJS} core a.out ycbcr
  133.